package reduce.fz.com.reduce.activity;

import android.support.v4.app.Fragment;
import android.support.v7.app.ActionBarActivity;
import android.os.Bundle;
import android.view.Menu;
import android.view.MenuItem;
import android.widget.FrameLayout;

import reduce.fz.com.reduce.R;
import reduce.fz.com.reduce.fragment.TeamMeDynamicListFragment;

public class OtherMeDynamicActivity extends BaseToolBarActivity {
    private FrameLayout mContainer;
    private TeamMeDynamicListFragment fragment;
    private Long teamid;
    private Long uid;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_other_me_dynamic);
        setToolbarTitle("他的动态");
        teamid = getIntent().getLongExtra("teamid", 0);
        uid = getIntent().getLongExtra("uid", 0);
        initWidget();
        attachFragment();
    }

    @Override
    public void initWidget() {
        mContainer = (FrameLayout) findViewById(R.id.fl_container);

    }

    public void attachFragment() {
        fragment =TeamMeDynamicListFragment.create(teamid,uid);
        getSupportFragmentManager().beginTransaction().replace(R.id.fl_container,fragment).commit();
    }

    @Override
    public void initListener() {

    }

}
